package com.zj;

import com.zj.service.User;
import org.springframework.context.annotation.*;

/**
 * Hello world!
 *
 */
@Configuration
@ComponentScan
@EnableAspectJAutoProxy(exposeProxy=true,proxyTargetClass=true)
public class AppConfig
{
    public AppConfig(){
        System.out.println("Appconfig create");
    }
    @Bean
    User user(){
        System.out.println("create user bean");
        return new User();
    }
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }
}
